package edu.nwpu.zya.coreops.modules.resource.dao;

import edu.nwpu.zya.coreops.modules.dashboard.entity.InstanceCountEntity;
import edu.nwpu.zya.coreops.modules.resource.entity.AppEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author zhouyuang
 * @email 742025491@qq.com
 * @date 2022-05-23 16:02:47
 */
@Mapper
public interface AppDao extends BaseMapper<AppEntity> {

    AppEntity getAppByInstanceId(@Param("instanceId") String instanceId);

    AppEntity getAppByRuleId(@Param("ruleId") Long ruleId);

    List<AppEntity> getAppListByUserId(@Param("userId") Long userId);

    InstanceCountEntity getInstanceCount(@Param("userId") Long userId);
}
